using JetBrains.Annotations;
using Orchard.ContentManagement.Handlers;
using Orchard.Data;
using Twitter.Models;

namespace Twitter.Handlers
{
    [UsedImplicitly]
    public class TwitterSettingsPartHandler : ContentHandler
    {
        public TwitterSettingsPartHandler(IRepository<TwitterSettingsPartRecord> repository)
        {
            Filters.Add(new ActivatingFilter<TwitterSettingsPart>("Site"));
            Filters.Add(StorageFilter.For(repository));
        }
    }
}